//
//  ColorCell.m
//  ObjcGoNew
//
//  Created by 邢伟新 on 2021/4/28.
//

#import "ColorCell.h"

@implementation ColorCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setTextContent:(NSString *)textContent{
    
    if (_textContent != textContent) {
        _textContent = textContent;
        [self setNeedsLayout];
    }
}
-(void)layoutSubviews{
    [super layoutSubviews];
    
    self.textLabel.text = self.textContent;
    
}


@end
